package com.sunshineedu.sunshineeducationspring.service;

import com.sunshineedu.sunshineeducationspring.dao.UserDao;
import com.sunshineedu.sunshineeducationspring.entity.User;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Resource
    UserDao userDao;

    public User findAllByUsername(String username) {
        return userDao.findAllByUsername(username);
    }

    public User findAllByWxId(String wxId) {
        return userDao.findAllByWxId(wxId);
    }

    public User save(User user){
        return userDao.save(user);
    }
}
